<Schema name="FDTProfibusScanIdentSchema" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:profibusident="x-schema:FDTProfibusIdentSchema.xml" xmlns:fdt="x-schema:FDTDataTypesSchema.xml">
	<!--Definition of Attributes-->
	<AttributeType name="schemaVersion" dt:type="number" default="1.21"/>
	<AttributeType name="resultState" dt:type="enumeration" dt:values="provisional final error"/>
	<AttributeType name="configuredState" dt:type="enumeration" dt:values="configuredAndPhysicallyAvailable  configuredAndNotPhysicallyAvailable availableButNotConfigured notApplicable"/>
	<!--Definition of elements-->
	<ElementType name="IdAddress" content="empty" model="closed">
		<attribute type="profibusident:slaveAddress" required="yes"/>
	</ElementType>
	<ElementType name="IdBusProtocol" content="empty" model="closed">
		<attribute type="profibusident:busProtocol" required="yes"/>
	</ElementType>
	<ElementType name="IdTypeID" content="empty" model="closed">
		<attribute type="profibusident:identNumber" required="yes"/>
	</ElementType>
	<!--                                        -->
	<!--                  IM                 -->
	<!--                                        -->
	<ElementType name="Manufacturer_id" content="empty" model="closed">
		<attribute type="profibusident:manufacturer_id" required="yes"/>
	</ElementType>
	<ElementType name="Order_id" content="empty" model="closed">
		<attribute type="profibusident:order_id" required="yes"/>
	</ElementType>
	<ElementType name="IdSerialNumber" content="empty" model="closed">
		<attribute type="profibusident:serialNumber" required="yes"/>
	</ElementType>
	<ElementType name="IdHardwareRevision" content="empty" model="closed">
		<attribute type="profibusident:hardwareRevision" required="yes"/>
	</ElementType>
	<ElementType name="IdSoftwareRevision" content="empty" model="closed">
		<attribute type="profibusident:softwareRevision" required="yes"/>
	</ElementType>
	<ElementType name="IdTag" content="empty" model="closed">
		<attribute type="profibusident:deviceTAG" required="yes"/>
	</ElementType>
	<ElementType name="ProfileID" content="empty" model="closed">
		<attribute type="profibusident:profileID" required="yes"/>
	</ElementType>
	<ElementType name="ProfileSpecificType" content="empty" model="closed">
		<attribute type="profibusident:profileSpecificType" required="yes"/>
	</ElementType>
	<ElementType name="ImVersion" content="empty" model="closed">
		<attribute type="profibusident:imVersion" required="yes"/>
	</ElementType>
	<ElementType name="TagFunction" content="empty" model="closed">
		<attribute type="profibusident:tagFunction" required="yes"/>
	</ElementType>
	<ElementType name="TagLocation" content="empty" model="closed">
		<attribute type="profibusident:tagLocation" required="yes"/>
	</ElementType>
	<ElementType name="ImSupported" content="empty" model="closed">
		<attribute type="profibusident:imSupported" required="yes"/>
	</ElementType>
	<!--			 -->
	<!--   PA 	-->
	<!-- 			-->
	<ElementType name="IdSoftwareRevisionPA" content="empty" model="closed">
		<attribute type="profibusident:softwareRevisionPA" required="yes"/>
	</ElementType>
	<ElementType name="IdHardwareRevisionPA" content="empty" model="closed">
		<attribute type="profibusident:hardwareRevisionPA" required="yes"/>
	</ElementType>
	<ElementType name="ProfileRevisionPA" content="empty" model="closed">
		<attribute type="profibusident:profileRevisionPA" required="yes"/>
	</ElementType>
	<ElementType name="Device_man_id" content="empty" model="closed">
		<attribute type="profibusident:device_man_id" required="yes"/>
	</ElementType>
	<ElementType name="Device_id" content="empty" model="closed">
		<attribute type="profibusident:device_id" required="yes"/>
	</ElementType>
	<ElementType name="ProfileSpecificTypePA" content="empty" model="closed">
		<attribute type="profibusident:profileSpecificTypePA" required="yes"/>
	</ElementType>
	<!-- reuse element from I&M 
	<ElementType name="IdSerialNumber" content="empty" model="closed">
		<attribute type="profibusident:serialNumber" required="yes"/>
	</ElementType>
	<ElementType name="IdTag" content="empty" model="closed">
		<attribute type="profibusident:deviceTAG" required="yes"/>
	</ElementType>
	-->
	<!--			 -->
	<!--   		-->
	<!-- 			-->
	<ElementType name="ManufacturerSpecificExtension" content="empty" model="closed">
		<attribute type="profibusident:manufacturerSpecificExtension" required="yes"/>
	</ElementType>
	<ElementType name="ScanIdentification_DP" content="eltOnly" model="closed">
		<attribute type="configuredState" required="no"/>
		<!--    attributes with semantic meaning: -->
		<element type="fdt:CommunicationError" minOccurs="0" maxOccurs="1"/>
		<element type="IdAddress" minOccurs="1" maxOccurs="1"/>
		<element type="IdTypeID" minOccurs="1" maxOccurs="1"/>
		<element type="IdBusProtocol" minOccurs="1" maxOccurs="1"/>
		<!--    manufacturer specific extension, added in manufacturer specific identification -->
		<element type="ManufacturerSpecificExtension" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="ScanIdentification_IM" content="eltOnly" model="closed">
		<attribute type="configuredState" required="no"/>
		<!--    attributes with semantic meaning: -->
		<element type="fdt:CommunicationError" minOccurs="0" maxOccurs="1"/>
		<element type="IdAddress" minOccurs="1" maxOccurs="1"/>
		<element type="IdTypeID" minOccurs="1" maxOccurs="1"/>
		<element type="IdBusProtocol" minOccurs="1" maxOccurs="1"/>
		<element type="Manufacturer_id" minOccurs="1" maxOccurs="1"/>
		<element type="Order_id" minOccurs="1" maxOccurs="1"/>
		<element type="IdHardwareRevision" minOccurs="1" maxOccurs="1"/>
		<element type="IdSoftwareRevision" minOccurs="1" maxOccurs="1"/>
		<element type="ProfileID" minOccurs="1" maxOccurs="1"/>
		<element type="ProfileSpecificType" minOccurs="1" maxOccurs="1"/>
		<element type="IdSerialNumber" minOccurs="1" maxOccurs="1"/>
		<element type="ImVersion" minOccurs="1" maxOccurs="1"/>
		<element type="TagFunction" minOccurs="1" maxOccurs="1"/>
		<element type="TagLocation" minOccurs="1" maxOccurs="1"/>
		<!-- TagFunction to be transformed to IdTag -->
		<element type="ImSupported" minOccurs="1" maxOccurs="1"/>
		<!--    manufacturer specific extension, added in manufacturer specific identification -->
		<element type="ManufacturerSpecificExtension" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="ScanIdentification_PA" content="eltOnly" model="closed">
		<attribute type="configuredState" required="no"/>
		<!--    attributes with semantic meaning: -->
		<element type="fdt:CommunicationError" minOccurs="0" maxOccurs="1"/>
		<element type="IdAddress" minOccurs="1" maxOccurs="1"/>
		<element type="IdTypeID" minOccurs="1" maxOccurs="1"/>
		<element type="IdBusProtocol" minOccurs="1" maxOccurs="1"/>
		<element type="IdSoftwareRevisionPA" minOccurs="1" maxOccurs="1"/>
		<element type="IdHardwareRevisionPA" minOccurs="1" maxOccurs="1"/>
		<element type="ProfileRevisionPA" minOccurs="1" maxOccurs="1"/>
		<element type="Device_man_id" minOccurs="1" maxOccurs="1"/>
		<element type="Device_id" minOccurs="1" maxOccurs="1"/>
		<element type="ProfileSpecificTypePA" minOccurs="1" maxOccurs="1"/>
		<element type="IdSerialNumber" minOccurs="1" maxOccurs="1"/>
		<element type="IdTag" minOccurs="1" maxOccurs="1"/>
		<!--    manufacturer specific extension, added in manufacturer specific identification -->
		<element type="ManufacturerSpecificExtension" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="ScanIdentifications" content="eltOnly" model="closed">
		<attribute type="fdt:busCategory" required="yes"/>
		<attribute type="resultState" required="yes"/>
		<group order="one" minOccurs="1" maxOccurs="*">
			<element type="ScanIdentification_DP" minOccurs="0" maxOccurs="*"/>
			<element type="ScanIdentification_IM" minOccurs="0" maxOccurs="*"/>
			<element type="ScanIdentification_PA" minOccurs="0" maxOccurs="*"/>
		</group>
	</ElementType>
	<ElementType name="FDT" content="eltOnly" model="closed">
		<element type="ScanIdentifications" minOccurs="1" maxOccurs="1"/>
	</ElementType>
</Schema>
